<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>Examples</title>
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <link href="" rel="stylesheet" />
</head>

<body>
  <div id="root">
    <c-list :urls='urls'></c-list>
    <c-form @on-recive-url="handleClick"></c-form>
  </div>
  <script src="../../vue.js"></script>
  <script type="module">
    import list from './list.js'
    import form from './form.js'
    var vm = new Vue({
      el: "#root",
      data: {
        urls: []
      },
      components: {
        'c-list': list,
        'c-form': form
      },
      methods: {
        handleClick(url) {
         this.urls.push(url)
        }
      },
    })
  </script>
</body>

</html>